package com.zr.eim.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zr.eim.mapper.EimAnalysisQrCodeScanningMapper;
import com.zr.eim.domain.EimAnalysisQrCodeScanning;
import com.zr.eim.service.IEimAnalysisQrCodeScanningService;

/**
 * 二维码扫码Service业务层处理
 * 
 * @author peihang
 * @date 2022-10-21
 */
@Service
public class EimAnalysisQrCodeScanningServiceImpl implements IEimAnalysisQrCodeScanningService 
{
    @Autowired
    private EimAnalysisQrCodeScanningMapper eimAnalysisQrCodeScanningMapper;

    /**
     * 查询二维码扫码
     * 
     * @param id 二维码扫码主键
     * @return 二维码扫码
     */
    @Override
    public EimAnalysisQrCodeScanning selectEimAnalysisQrCodeScanningById(Long id)
    {
        return eimAnalysisQrCodeScanningMapper.selectEimAnalysisQrCodeScanningById(id);
    }

    /**
     * 查询二维码扫码列表
     * 
     * @param eimAnalysisQrCodeScanning 二维码扫码
     * @return 二维码扫码
     */
    @Override
    public List<EimAnalysisQrCodeScanning> selectEimAnalysisQrCodeScanningList(EimAnalysisQrCodeScanning eimAnalysisQrCodeScanning)
    {
        return eimAnalysisQrCodeScanningMapper.selectEimAnalysisQrCodeScanningList(eimAnalysisQrCodeScanning);
    }

    /**
     * 新增二维码扫码
     * 
     * @param eimAnalysisQrCodeScanning 二维码扫码
     * @return 结果
     */
    @Override
    public int insertEimAnalysisQrCodeScanning(EimAnalysisQrCodeScanning eimAnalysisQrCodeScanning)
    {
        return eimAnalysisQrCodeScanningMapper.insertEimAnalysisQrCodeScanning(eimAnalysisQrCodeScanning);
    }

    /**
     * 修改二维码扫码
     * 
     * @param eimAnalysisQrCodeScanning 二维码扫码
     * @return 结果
     */
    @Override
    public int updateEimAnalysisQrCodeScanning(EimAnalysisQrCodeScanning eimAnalysisQrCodeScanning)
    {
        return eimAnalysisQrCodeScanningMapper.updateEimAnalysisQrCodeScanning(eimAnalysisQrCodeScanning);
    }

    /**
     * 批量删除二维码扫码
     * 
     * @param ids 需要删除的二维码扫码主键
     * @return 结果
     */
    @Override
    public int deleteEimAnalysisQrCodeScanningByIds(Long[] ids)
    {
        return eimAnalysisQrCodeScanningMapper.deleteEimAnalysisQrCodeScanningByIds(ids);
    }

    /**
     * 删除二维码扫码信息
     * 
     * @param id 二维码扫码主键
     * @return 结果
     */
    @Override
    public int deleteEimAnalysisQrCodeScanningById(Long id)
    {
        return eimAnalysisQrCodeScanningMapper.deleteEimAnalysisQrCodeScanningById(id);
    }
}
